package com.yuanchu.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanchu.common.utils.PageResult;
import com.yuanchu.common.utils.PageUtils;
import com.yuanchu.store.dto.EditGradeParamsDto;
import com.yuanchu.store.dto.UserGradeDto;
import com.yuanchu.store.entity.YoshopUserGradeEntity;

import java.util.List;
import java.util.Map;

/**
 * 用户会员等级表
 *
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 20:57:20
 */
public interface YoshopUserGradeService extends IService<YoshopUserGradeEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询会员等级列表
     * @param status
     * @return
     */
    List<UserGradeDto> queryGradelist(Integer status);


    /**
     *  查询会员等级信息
     * @param gradeId
     * @return
     */
    UserGradeDto getUserGradeInfo(Integer gradeId);

    /**
     * 查询会员等级列表
     * @return
     */
    PageResult<UserGradeDto> queryUserGradeList();

    /**
     * 修改会员等级
     */
    void editUserGrade(EditGradeParamsDto param);

    /**
     * 删除会员等级
     */
    void deleteUserGrade(Integer gradeId);
}

